<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>渲染顺序</title>
    <style>
        #box1{
            width: 100px;
            height: 100px;
            background: red;
        }
        #box2{
            width: 100px;
            height: 100px;
            background: blue;
        }
    </style>
</head>
<body>
    <div id="box1">
        <!-- 从上倒下渲染，下边的会把上边的覆盖掉 -->
        <!-- 从外倒里渲染，里边的会把外边的覆盖掉 -->
        <div id="box2"></div>
    </div>
    
</body>
</html>